package com.zd.common.common.enums;

public enum UserIdNumberTypeEnum {
	identity(1,"身份证");
	
	private int key;
	private String value;

	private UserIdNumberTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}


	public void setKey(int key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	public static UserIdNumberTypeEnum get(int key) {
		for (UserIdNumberTypeEnum userIdNumberType : UserIdNumberTypeEnum.values()) {
			if (userIdNumberType.getKey() == key) {
				return userIdNumberType;
			}
		}
		return null;
	}
}
